﻿using System;
using System.Collections.Generic;
using System.Data.Services;
using System.Linq;
using System.ServiceModel.Web;
using System.Web;

namespace ADO_Data_Service
{
    // JDO: Set the type to AdventureWorksEntities
    public class ExampleDataService : DataService<AdventureWorksEntities>
    {
        public static void InitializeService(IDataServiceConfiguration config)
        {
            // JDO: Set the service-wide policies to Read Only Access
            config.SetEntitySetAccessRule("*", EntitySetRights.AllRead);
        }
    }
}
